class SettingsController < ApplicationController
  def index
    @setting = Setting.get
    render(:action => :edit)
  end
  
  def update
    @setting = Setting.find(params[:id])
    if @setting.update_attributes(params[:setting])
      flash[:success] = "Settings updated successfully."
      redirect_to(:action => :index)
    else
      render(:action => :edit)
    end
  end
end
